package chapter7;

public class SuperClass extends BaseClass{
	//瀛愮被鐨勬瀯閫犲嚱鏁颁腑绗竴浠惰鍋氱殑浜嬪氨鏄皟鐢ㄧ埗绫荤殑鏋勯�鍑芥暟锛屽鏋滄病鏈夋樉绀虹殑super璋冪敤
	//閭ｅ氨瑕佹眰鐖剁被蹇呴』瑕佹湁榛樿鏋勯�鍑芥暟锛屽惁鍒欑紪璇戝櫒灏卞嚭閿欍�
	public SuperClass(){
		System.out.println("SuperClass");
	}
	
	//鏄剧ず璋冪敤鐖剁被鐨勬瀯閫犲嚱鏁�	
	public SuperClass(int i)
	{
		//濡傛灉涓嶆樉绀簊uper璋冪敤鎸囧畾鐨勭埗绫绘瀯閫犲嚱鏁帮紝灏辫皟鐢ㄩ粯璁ょ殑鐖剁被鏋勯�鍑芥暟銆�		
		//super(i);
		System.out.println("SuperClass:"+i);
	}
	
	//璋冪敤鐖剁被鐨刾rotected鏂规硶
	protected String toSuperString()
	{
		return super.toBaseString();
	}

	/**
	 * @param args
	 */
	@SuppressWarnings("unused")
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		SuperClass s=new SuperClass(1);

	}

}
